home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20021006-20030409 / 000078_JDanSkinner@JDanSkinner.com_Thu Nov 14 11:33:24 EST 2002.msg < prev    next >
Text File  |  2020-01-01  |  3KB  |  81 lines

  1. Article: 13844 of comp.protocols.kermit.misc
  2. Path: newsmaster.cc.columbia.edu!panix!bloom-beacon.mit.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail
  3. From: JDanSkinner@JDanSkinner.com (Dan Skinner)
  4. Newsgroups: comp.protocols.kermit.misc
  5. Subject: Re: C-Kermit FTP script
  6. Date: 13 Nov 2002 21:07:55 -0800
  7. Organization: http://groups.google.com/
  8. Lines: 62
  9. Message-ID: <8ce22d01.0211132107.1a569739@posting.google.com>
  10. References: <8ce22d01.0211131301.2d2c8112@posting.google.com> <aqufg7$39f$1@newsmaster.cc.columbia.edu>
  11. NNTP-Posting-Host: 24.159.192.106
  12. Content-Type: text/plain; charset=ISO-8859-1
  13. Content-Transfer-Encoding: 8bit
  14. X-Trace: posting.google.com 1037250475 20876 127.0.0.1 (14 Nov 2002 05:07:55 GMT)
  15. X-Complaints-To: groups-abuse@google.com
  16. NNTP-Posting-Date: 14 Nov 2002 05:07:55 GMT
  17. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:13844
  18.  
  19. Thanks guys;
  20. I knew I was missing something.
  21. I only went as far as the basic FTP scripting examples.
  22. Now I can fix it right.
  23. Do you think success is the right answer to a failed login?
  24. The rules are the rules, but sometimes logic should prevail.
  25. Anywho - I appreciate the quick and clear help.
  26. When this script is done it will be run by cron as part of a scheduled
  27. backup on the network.  I'll find out what happened by email so (as
  28. you say) if fail is a big deal and the more info in the email the
  29. better. I'm using Kermit FTP rather than native FTP for this reason. 
  30. I have several other systems using this cron strategy with native FTP 
  31. This is the first new server on the network since version 8.  I
  32. suppose a rational person would go back and fix the old ones? But then
  33. would a rational guy be watching Letterman and talking to you all?
  34. Regards...Dan.
  35. >jaltman@watsun.cc.columbia.edu (Jeffrey Altman) wrote in message news:<aqufg7>$39f$1@newsmaster.cc.columbia.edu>...
  36. > FTP OPEN will not result in FAILURE because of a failed login
  37. > attempt.  The OPEN succeeds if you are connected to the FTP 
  38. > server.
  39. > If you want to automate the login and be able to test the result:
  40. >   SET FTP AUTOLOGIN OFF
  41. >   FTP OPEN hostname
  42. >   IF FAILURE ...
  43. >   FTP USER username password 
  44. >   IF FAILURE ...
  45. > In article <8ce22d01.0211131301.2d2c8112@posting.google.com>,
  46. > Dan Skinner <JDanSkinner@JDanSkinner.com> wrote:
  47. > : ; FTP script from Linux archive to skinner /icsdemo 
  48. > : set command quoting on
  49. > : set login prompt 
  50. > : set network tcp/ip
  51. > : if fail end 1 TCP/IP Failed
  52. > : set input echo on
  53. > : ftp open skinner /user:root /password:xxxxxx
  54. > : if fail exit 1 connection failed
  55. > : ftp cd /icsdemo
  56. > : ftp put jdsmenuarch.tar
  57. > : ftp put gbsarch.tar
  58. > : quit
  59. > : 
  60. > : The script above works when the ftp open is correct.
  61. > : if also works correctly (fails) if the ftp server does not exist.
  62. > : It is broken if the server exists but the login fails.
  63. > : IE: the put commands are issued.
  64. > : I've made it as simple as I can but can't see what I'm doing wrong.
  65. > : Using Linux 8.0.206 on Mandrake distro.
  66. > : Skinner is SCO OpenServer 5.04 if that matters?
  67. > : 
  68. > : Any help appreciated.
  69. > : Regards...Dan.
  70. >  Jeffrey Altman * Sr.Software Designer     Kermit 95 2.0 GUI available now!!!
  71. >  The Kermit Project @ Columbia University  SSH, Secure Telnet, Secure FTP, HTTP
  72. >  http://www.kermit-project.org/            Secured with MIT Kerberos, SRP, and 
  73. >  kermit-support@columbia.edu               OpenSSL.
  74.